/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.excel;

import com.bedatadriven.mso.core.MsoTextOrientation;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Excel.TextFrame*/
public class TextFrame extends JavaScriptObject {

	protected TextFrame() { }
	public native final ExcelApplication getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final float getMarginBottom()/*-{
		return this.MarginBottom;
	}-*/;

	public native final void setMarginBottom(float value)/*-{
		this.MarginBottom = value;
	}-*/;

	public native final float getMarginLeft()/*-{
		return this.MarginLeft;
	}-*/;

	public native final void setMarginLeft(float value)/*-{
		this.MarginLeft = value;
	}-*/;

	public native final float getMarginRight()/*-{
		return this.MarginRight;
	}-*/;

	public native final void setMarginRight(float value)/*-{
		this.MarginRight = value;
	}-*/;

	public native final float getMarginTop()/*-{
		return this.MarginTop;
	}-*/;

	public native final void setMarginTop(float value)/*-{
		this.MarginTop = value;
	}-*/;

	protected native final int _getOrientation()/*-{
		return this.Orientation;
	}-*/;

	public final MsoTextOrientation getOrientation(){
		return MsoTextOrientation.valueOf(_getOrientation());
	}
	protected native final void _setOrientation( int value)/*-{
		this.Orientation = value;
	}-*/;

	public final void setOrientation(MsoTextOrientation value){
		_setOrientation(value.getValue());
	}
	public native final Characters characters( Object start,  Object length)/*-{
		return this.Characters( start, length);
	}-*/;

	public native final int getHorizontalAlignment()/*-{
		return this.HorizontalAlignment;
	}-*/;

	public native final void setHorizontalAlignment(int value)/*-{
		this.HorizontalAlignment = value;
	}-*/;

	public native final int getVerticalAlignment()/*-{
		return this.VerticalAlignment;
	}-*/;

	public native final void setVerticalAlignment(int value)/*-{
		this.VerticalAlignment = value;
	}-*/;

	public native final boolean getAutoSize()/*-{
		return this.AutoSize;
	}-*/;

	public native final void setAutoSize(boolean value)/*-{
		this.AutoSize = value;
	}-*/;

	public native final int getReadingOrder()/*-{
		return this.ReadingOrder;
	}-*/;

	public native final void setReadingOrder(int value)/*-{
		this.ReadingOrder = value;
	}-*/;

	public native final boolean getAutoMargins()/*-{
		return this.AutoMargins;
	}-*/;

	public native final void setAutoMargins(boolean value)/*-{
		this.AutoMargins = value;
	}-*/;

}
